cmake_minimum_required(VERSION 2.6)
project(lenet)

add_definitions(-std=c++11)

set(CMAKE_BUILD_TYPE "Debug")

#cuda
find_package(CUDA REQUIRED)
include_directories(${CUDA_INCLUDE_DIRS})

#tensorrt
include_directories(/usr/include/aarch64-linux-gnu/)
link_directories(/usr/lib/aarch64-linux-gnu/)

#opencv
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})

set(EXEC app)
add_executable(${EXEC} ${PROJECT_SOURCE_DIR}/alexnet.cpp)
target_link_libraries(${EXEC} nvinfer cudart ${OpenCV_LIBS})
